package com.company;

public class Main {

    public static void main(String[] args) {
        // write your code here
//        for (int i = 0; i < 100; i++) {
//            new Thread(new SynAddRunable(1, 2)).start();
//            new Thread(new SynAddRunable(2, 1)).start();
//        }
        String purchaseImgUrl="zjcs/serviceMatters/pic/人防工程施工图设计文件审查.png";
        String replace = purchaseImgUrl.replace("zjcs", "market");
        System.out.println(replace);
    }

    static class SynAddRunable implements Runnable {
        int a, b;

        public SynAddRunable() {
        }

        public SynAddRunable(int a, int b) {
            this.a = a;
            this.b = b;
        }

        @Override
        public void run() {

            synchronized (Integer.valueOf(a)) {
                synchronized (Integer.valueOf(b)) {
                    System.out.println(a + b);
                }
            }
        }
    }
}
